﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace BuildHelper.Server
{
    [ServiceContract(CallbackContract = typeof(IUpdateServerServiceCallback))]
    public interface IUpdateServerService
    {
        [OperationContract]
        Version GetLatestVersion();

        [OperationContract]
        long Connect(string name);

        [OperationContract]
        void Disconnect(long id);

        [OperationContract]
        void Beep();

        [OperationContract]
        void SendStreamPart(long Id, string streamId, byte[] buffer, int bufferSize);

        [OperationContract]
        bool BeginSendingStream(long Id, string streamId);

        [OperationContract]
        void EndSendingStream(long Id, string streamId);
    }
}
